package com.css.dzj.dzjjcss.modules.venue.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 导入字段
 * @Author WT
 * @Date 2020/6/3
 */
@Data
public class VueExcelVo implements IExcelDataModel, IExcelModel {

    private Integer rowNum;
    private String errorMsg;

    @NotNull(message = "数据缺失")
    @Excel(name = "场地场所名称")
    private String placeName;

    @NotNull(message = "数据缺失")
    @Excel(name = "所在地区")
    private String area;

    @NotNull(message = "数据缺失")
    @Excel(name = "所在地区行政区划代码")
    private String areaNumber;

    @NotNull(message = "数据缺失")
    @Excel(name = "责任单位")
    private String responsibleDept;

    @NotNull(message = "数据缺失")
    @Excel(name = "责任单位统一社会信用代码")
    private String enterpriseCreditCode;

    @NotNull(message = "数据缺失")
    @Excel(name = "责任人")
    private String chargePerson;

    @NotNull(message = "数据缺失")
    @Excel(name = "责任人证件类型")
    private String certificateType;

    @NotNull(message = "数据缺失")
    @Excel(name = "责任人证件编码")
    private String certificateNumber;

    @NotNull(message = "数据缺失")
    @Excel(name = "联系电话")
    private String contactTel;

    @NotNull(message = "数据缺失或时间格式错误")
    @Excel(name = "场地场所用途")
    private Date placePurpose;

    @NotNull(message = "数据缺失")
    @Excel(name = "场地规模")
    private String placeScale;

    @NotNull(message = "数据缺失")
    @Excel(name = "投入使用开始时间(YYYY-MM-DD)")
    private Date startDate;

    @NotNull(message = "数据缺失")
    @Excel(name = "使用寿命(年)")
    private BigDecimal deviceLifetime;



    public VueExcelVo() {
    }

}
